package cn.com.miaoto.base.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by guo.chen on 2018/12/26.
 */
public class DateUtils {

    public static String date2String(Date date, String format){
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        return sdf.format(date);
    }
}
